🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / repository / src / commonMain / kotlin / org / meshtastic / core / repository / FirmwareUpdateStatusRepository.kt
Displaying Raw • Download
core/repository/src/commonMain/kotlin/org/meshtastic/core/repository/FirmwareUpdateStatusRepository.kt 4f86b91973784e4ec05b9a5c7b2dc396ed4848b8 (4f86b919) Text, 1.62 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.repository
Tff7b72import T7ee787kotlinx.coroutines.flow.MutableStateFlow
Tff7b72import T7ee787kotlinx.coroutines.flow.StateFlow
Tff7b72import T7ee787kotlinx.coroutines.flow.asStateFlow
Tff7b72import T7ee787kotlinx.coroutines.flow.update
Tff7b72data Tff7b72class T56d364FirmwareUpdateStatusTb4b4b4(Tff7b72val Te6edf3isOtaUpdateActiveTb4b4b4: Tffa657Boolean Tff7b72= Tff7b72falseTb4b4b4, Tff7b72val Te6edf3isAwaitingOtaStatusTb4b4b4: Tffa657Boolean Tff7b72= Tff7b72falseTb4b4b4)
Tff7b72class T56d364FirmwareUpdateStatusRepository Tb4b4b4{
Tff7b72private Tff7b72val Te6edf3_status Tff7b72= Te6edf3MutableStateFlowTb4b4b4(Te6edf3FirmwareUpdateStatusTb4b4b4(Tb4b4b4)Tb4b4b4)
Tff7b72val Te6edf3statusTb4b4b4: Te6edf3StateFlowTff7b72<Te6edf3FirmwareUpdateStatusTff7b72> Tff7b72= Te6edf3_statusTb4b4b4.Te6edf3asStateFlowTb4b4b4(Tb4b4b4)
Tff7b72fun Td2a8ffbeginOtaUpdateTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3_statusTb4b4b4.Te6edf3value Tff7b72= Te6edf3FirmwareUpdateStatusTb4b4b4(Te6edf3isOtaUpdateActive Tff7b72= Tff7b72trueTb4b4b4)
Tb4b4b4}
Tff7b72fun Td2a8ffbeginOtaPreflightTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3_statusTb4b4b4.Te6edf3value Tff7b72= Te6edf3FirmwareUpdateStatusTb4b4b4(Te6edf3isOtaUpdateActive Tff7b72= Tff7b72trueTb4b4b4, Te6edf3isAwaitingOtaStatus Tff7b72= Tff7b72trueTb4b4b4)
Tb4b4b4}
Tff7b72fun Td2a8fffinishOtaPreflightTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3_statusTb4b4b4.Te6edf3update Tb4b4b4{ Tffa657itTb4b4b4.Te6edf3copyTb4b4b4(Te6edf3isAwaitingOtaStatus Tff7b72= Tff7b72falseTb4b4b4) Tb4b4b4}
Tb4b4b4}
Tff7b72fun Td2a8ffendOtaUpdateTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3_statusTb4b4b4.Te6edf3value Tff7b72= Te6edf3FirmwareUpdateStatusTb4b4b4(Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.05s